<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateVideoListsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
	    Schema::create('video_lists', function (Blueprint $table) {
		    $table->increments('id');
		    $table->integer('classify_id');
		    $table->string('title', 60);
		    $table->string('cover', 100);
		    $table->string('intro', 1500);
		    $table->integer('price')->default(0);
		    $table->integer('click')->default(0);
		    $table->integer('author_id');
		    $table->tinyInteger('status')->default(1);
		    $table->timestamps();
	    });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
	    Schema::dropIfExists('video_lists');
    }
}
